import Taro from "@tarojs/taro";

export const getUser = () => Taro.getStorageSync("user");
export const setUser = (data) => Taro.setStorage({ key: "user", data });
export const deleteUser = () => Taro.removeStorage({ key: "user", });

export const getToken = () => Taro.getStorageSync("token");
export const setToken = (data) => Taro.setStorage({ key: "token", data });
